﻿@Html.Action("UserGroupPartialView")
<br />
@Html.DevExpress().Button(settings =>
                {
                    settings.Name = "Button1";
                    settings.Text = "增加权限组";
                    settings.UseSubmitBehavior = true;
                    settings.Width = 120;
                    settings.ControlStyle.CssClass = "button1";
                    settings.ClientSideEvents.Click = "function(s, e){ editGroup();}";
                }).GetHtml()

@*<input type="button" value="增加权限组" class="webcar-button" onclick="javascript: edit('');" />*@

<script type="text/javascript">
    var groupId = null;
    function editGroup(id) {
        groupId = id;
        pcModalMode.Show();
    }
    function OnBeginCallback(s, e) {
        e.customArgs["groupId"] = groupId;
        groupId = null;
    }
    function OnEndCallback(s, e) {
    }
</script>



@Html.DevExpress().PopupControl(
settings =>
{
    settings.Name = "pcModalMode";
    settings.CallbackRouteValues = new { Controller = "Account", Action = "EditGroup" };
    settings.Width = 410;
    settings.Height = 200;
    settings.InitDefaultSettings();
    
    settings.HeaderText = "权限组编辑";
}).GetHtml()
